﻿using System;
using System.ServiceModel;

namespace Primer.Contracts
{
    public interface IMyContractCallback
    {
        [OperationContract]
        void OnCallback();
    }

    //[ServiceContract(CallbackContract = typeof(IMyContractCallback))]
    [ServiceContract] 
    public interface IMyContract
    {
        [OperationContract]
        void DoSomething();
    }

    public class MyContract : IMyContract
    {
        public void DoSomething()
        {
            Console.Write("TEST");
        }
    }
}
